<?php
namespace Home\Controller;
use Think\Controller;
class PublicController extends Controller {
    public function __construct(){
        parent::__construct();
        $info['title'] = "消消乐";
        $this->info = $info;

        if ($_SESSION['user_id']!="") {
        	$this->is_login = 1;

        	$user = array(
        		'id'=>1,
        		'nick_name'=>"中国IT的希望"
        	);
        	$this->user = $user;
        }else{
        	$this->is_login = 0;
        }
    }
}